package nl.boektrust.btsoep.shared.model;

public enum SupplierCode {
	UNDEFINED, PUBLISHER, CENTRAALBOEKHUIS, LIBRIS, SCHOLTENS;
	
	public static String stringValue(SupplierCode c) {
		assert(c != null);
		if (c == null) {
			throw new IllegalArgumentException("SupplierCode:stringValue got passed a null parameter");
			//System.err.println("ERROR SERIOUS: SupplierCode:stringValue got passed a null parameter");
			//return "HELP!";
		}
		switch (c) {
		case PUBLISHER: return "Uitgever"; 
		case CENTRAALBOEKHUIS: return "Centraal Boekhuis"; 
		case SCHOLTENS: return "Scholtens"; 
		case LIBRIS: return "Libris";
		default: return "Onbekend";
		}
		
	}

}
